FROM openjdk:11-jdk
EXPOSE 8080
WORKDIR /var/service

ARG JAR_FILE
VOLUME /var/service/logs

ADD target/demo.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar", ">$demo.log", "2>error.log"]